From b3a1978719e9d913a6d7145cf4b640cbd75225a5 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sun, 26 Feb 2006 10:54:06 +0100 Subject: [PATCH] pygrub currently takes a file on the command line to mean a config file if it can't figure out partitions and filesystems. This then makes it balloon to absurd sizes. Make this only happen if you pass a debugging flag Signed-off-by: Jeremy Katz --- tools/pygrub/src/pygrub | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index e0a5d31fdc..9b94653284 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -94,12 +94,18 @@ def get_active_offset(file): return struct.unpack("